Skip to main content

Mac Native Single-line Field

Type

widget

Summary

This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.

Description

This widget wraps the native NSTextField on Mac. Since this is a single-line field, the return key does not enter a new line, instead it triggers the returnKey action and the contents of the field is selected.

Compatibility and Support

OS

mac

Children Properties

Property

NameSummarySyntax
enabledThe enabled state of the text fieldset the enabled of <widget> to {true | false} get the enabled of <widget>
showFocusBorderWhether the text field has a focus border or notset the showFocusBorder of <widget> to { true | false } get the showFocusBorder of <widget>
showBorderWhether the text field has a border or notset the showBorder of <widget> to { true | false } get the showBorder of <widget>
textThe text displayed by the widgetset the text of <widget> to <pText> get the text of <widget>

Message

NameSummarySyntax
returnKeySent when the user presses the return keyon returnKey